home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / E-G / growBoxX.cpt / growBox XFCN / cards.xml < prev    next >
Text File  |  1991-11-10  |  11KB  |  261 lines

  1. card_2391.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2391</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2261</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3265.css" />
  12.     <name></name>
  13.     <script></script>
  14. </card>
  15.  
  16.  
  17. card_3028.xml
  18. <?xml version="1.0" encoding="utf-8" ?>
  19. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  20. <card>
  21.     <id>3028</id>
  22.     <filler1>0</filler1>
  23.     <bitmap>BMAP_3924.pbm</bitmap>
  24.     <cantDelete> <false /> </cantDelete>
  25.     <showPict> <true /> </showPict>
  26.     <dontSearch> <false /> </dontSearch>
  27.     <owner>2718</owner>
  28.     <link rel="stylesheet" type="text/css" href="stylesheet_3265.css" />
  29.     <part>
  30.         <id>1</id>
  31.         <type>button</type>
  32.         <visible> <true /> </visible>
  33.         <reserved5> 0 </reserved5>
  34.         <reserved4> 0 </reserved4>
  35.         <reserved3> 0 </reserved3>
  36.         <reserved2> 0 </reserved2>
  37.         <reserved1> 0 </reserved1>
  38.         <enabled> <true /> </enabled>
  39.         <rect>
  40.             <left>338</left>
  41.             <top>354</top>
  42.             <right>353</right>
  43.             <bottom>369</bottom>
  44.         </rect>
  45.         <style>transparent</style>
  46.         <showName> <false /> </showName>
  47.         <highlight> <false /> </highlight>
  48.         <autoHighlight> <false /> </autoHighlight>
  49.         <sharedHighlight> <true /> </sharedHighlight>
  50.         <family>0</family>
  51.         <titleWidth>0</titleWidth>
  52.         <icon>29407</icon>
  53.         <textAlign>center</textAlign>
  54.         <font>Geneva</font>
  55.         <textSize>12</textSize>
  56.         <textStyle>plain</textStyle>
  57.         <name>Sizer</name>
  58.         <script>on mouseDownlock screen  -- comment this out to see what's really going on...get growBox (the clickLoc,"¬© Jeff Winkler","288,116,800,1000")set the rect of this cd to it  -- this will send a sizeWindow messageset the loc of cd window to item 1 of it,item 2 of itend mouseDown-- growBox (the clickLoc,"¬© Jeff Winkler" [,bounding rectangle])-- growBox returns the new rectangle for the card. A sizewindow handler-- may then rearrange the objects on the card to fit the new enclosure-- (This message is only sent if the size changed). As you might guess,-- this is the hard part.-- The optional bounding rectangle determines the largest and smallest-- size for the window.  The items are: minWidth,minHeight,maxWidth,-- maxHeight. As an example, the bounding rect for this window is-- 288,116,800,1000.  Finding the optimal bounding rect usually-- requires some experimentation.  Remember that the width of a card-- is always a multiple of 16.</script>
  59.     </part>
  60.     <part>
  61.         <id>2</id>
  62.         <type>field</type>
  63.         <visible> <true /> </visible>
  64.         <dontWrap> <false /> </dontWrap>
  65.         <dontSearch> <true /> </dontSearch>
  66.         <sharedText> <false /> </sharedText>
  67.         <fixedLineHeight> <false /> </fixedLineHeight>
  68.         <autoTab> <false /> </autoTab>
  69.         <lockText> <true /> </lockText>
  70.         <rect>
  71.             <left>16</left>
  72.             <top>16</top>
  73.             <right>336</right>
  74.             <bottom>352</bottom>
  75.         </rect>
  76.         <style>scrolling</style>
  77.         <autoSelect> <false /> </autoSelect>
  78.         <showLines> <false /> </showLines>
  79.         <wideMargins> <false /> </wideMargins>
  80.         <multipleLines> <false /> </multipleLines>
  81.         <reservedFamily> 0 </reservedFamily>
  82.         <titleWidth>0</titleWidth>
  83.         <icon>0</icon>
  84.         <textAlign>left</textAlign>
  85.         <font>Geneva</font>
  86.         <textSize>12</textSize>
  87.         <textStyle>plain</textStyle>
  88.         <textHeight>16</textHeight>
  89.         <name>body</name>
  90.         <script></script>
  91.     </part>
  92.     <part>
  93.         <id>3</id>
  94.         <type>field</type>
  95.         <visible> <true /> </visible>
  96.         <dontWrap> <false /> </dontWrap>
  97.         <dontSearch> <false /> </dontSearch>
  98.         <sharedText> <false /> </sharedText>
  99.         <fixedLineHeight> <false /> </fixedLineHeight>
  100.         <autoTab> <false /> </autoTab>
  101.         <lockText> <true /> </lockText>
  102.         <rect>
  103.             <left>13</left>
  104.             <top>13</top>
  105.             <right>339</right>
  106.             <bottom>14</bottom>
  107.         </rect>
  108.         <style>opaque</style>
  109.         <autoSelect> <false /> </autoSelect>
  110.         <showLines> <false /> </showLines>
  111.         <wideMargins> <false /> </wideMargins>
  112.         <multipleLines> <false /> </multipleLines>
  113.         <reservedFamily> 0 </reservedFamily>
  114.         <titleWidth>0</titleWidth>
  115.         <icon>0</icon>
  116.         <textAlign>left</textAlign>
  117.         <font>Geneva</font>
  118.         <textSize>12</textSize>
  119.         <textStyle>plain</textStyle>
  120.         <textHeight>16</textHeight>
  121.         <name>t1432</name>
  122.         <script>--shadow</script>
  123.     </part>
  124.     <part>
  125.         <id>4</id>
  126.         <type>field</type>
  127.         <visible> <true /> </visible>
  128.         <dontWrap> <false /> </dontWrap>
  129.         <dontSearch> <false /> </dontSearch>
  130.         <sharedText> <false /> </sharedText>
  131.         <fixedLineHeight> <false /> </fixedLineHeight>
  132.         <autoTab> <false /> </autoTab>
  133.         <lockText> <true /> </lockText>
  134.         <rect>
  135.             <left>13</left>
  136.             <top>13</top>
  137.             <right>14</right>
  138.             <bottom>354</bottom>
  139.         </rect>
  140.         <style>opaque</style>
  141.         <autoSelect> <false /> </autoSelect>
  142.         <showLines> <false /> </showLines>
  143.         <wideMargins> <false /> </wideMargins>
  144.         <multipleLines> <false /> </multipleLines>
  145.         <reservedFamily> 0 </reservedFamily>
  146.         <titleWidth>0</titleWidth>
  147.         <icon>0</icon>
  148.         <textAlign>left</textAlign>
  149.         <font>Geneva</font>
  150.         <textSize>12</textSize>
  151.         <textStyle>plain</textStyle>
  152.         <textHeight>16</textHeight>
  153.         <name>l1432</name>
  154.         <script>--shadow</script>
  155.     </part>
  156.     <part>
  157.         <id>5</id>
  158.         <type>field</type>
  159.         <visible> <true /> </visible>
  160.         <dontWrap> <false /> </dontWrap>
  161.         <dontSearch> <false /> </dontSearch>
  162.         <sharedText> <false /> </sharedText>
  163.         <fixedLineHeight> <false /> </fixedLineHeight>
  164.         <autoTab> <false /> </autoTab>
  165.         <lockText> <true /> </lockText>
  166.         <rect>
  167.             <left>338</left>
  168.             <top>13</top>
  169.             <right>340</right>
  170.             <bottom>356</bottom>
  171.         </rect>
  172.         <style>rectangle</style>
  173.         <autoSelect> <false /> </autoSelect>
  174.         <showLines> <false /> </showLines>
  175.         <wideMargins> <false /> </wideMargins>
  176.         <multipleLines> <false /> </multipleLines>
  177.         <reservedFamily> 0 </reservedFamily>
  178.         <titleWidth>0</titleWidth>
  179.         <icon>0</icon>
  180.         <textAlign>left</textAlign>
  181.         <font>Geneva</font>
  182.         <textSize>12</textSize>
  183.         <textStyle>plain</textStyle>
  184.         <textHeight>16</textHeight>
  185.         <name>r1432</name>
  186.         <script>--shadow</script>
  187.     </part>
  188.     <part>
  189.         <id>6</id>
  190.         <type>field</type>
  191.         <visible> <true /> </visible>
  192.         <dontWrap> <false /> </dontWrap>
  193.         <dontSearch> <false /> </dontSearch>
  194.         <sharedText> <false /> </sharedText>
  195.         <fixedLineHeight> <false /> </fixedLineHeight>
  196.         <autoTab> <false /> </autoTab>
  197.         <lockText> <true /> </lockText>
  198.         <rect>
  199.             <left>13</left>
  200.             <top>354</top>
  201.             <right>339</right>
  202.             <bottom>356</bottom>
  203.         </rect>
  204.         <style>rectangle</style>
  205.         <autoSelect> <false /> </autoSelect>
  206.         <showLines> <false /> </showLines>
  207.         <wideMargins> <false /> </wideMargins>
  208.         <multipleLines> <false /> </multipleLines>
  209.         <reservedFamily> 0 </reservedFamily>
  210.         <titleWidth>0</titleWidth>
  211.         <icon>0</icon>
  212.         <textAlign>left</textAlign>
  213.         <font>Geneva</font>
  214.         <textSize>12</textSize>
  215.         <textStyle>plain</textStyle>
  216.         <textHeight>16</textHeight>
  217.         <name>b1432</name>
  218.         <script>--shadow</script>
  219.     </part>
  220.     <part>
  221.         <id>9</id>
  222.         <type>button</type>
  223.         <visible> <true /> </visible>
  224.         <reserved5> 0 </reserved5>
  225.         <reserved4> 0 </reserved4>
  226.         <reserved3> 0 </reserved3>
  227.         <reserved2> 0 </reserved2>
  228.         <reserved1> 0 </reserved1>
  229.         <enabled> <true /> </enabled>
  230.         <rect>
  231.             <left>19</left>
  232.             <top>17</top>
  233.             <right>52</right>
  234.             <bottom>53</bottom>
  235.         </rect>
  236.         <style>transparent</style>
  237.         <showName> <false /> </showName>
  238.         <highlight> <false /> </highlight>
  239.         <autoHighlight> <false /> </autoHighlight>
  240.         <sharedHighlight> <true /> </sharedHighlight>
  241.         <family>0</family>
  242.         <titleWidth>0</titleWidth>
  243.         <icon>29589</icon>
  244.         <textAlign>center</textAlign>
  245.         <font>Chicago</font>
  246.         <textSize>12</textSize>
  247.         <textStyle>plain</textStyle>
  248.         <name>windowGuy</name>
  249.         <script></script>
  250.     </part>
  251.     <content>
  252.         <layer>card</layer>
  253.         <id>2</id>
  254.         <text><span class="style12">        </span><span class="style7">growBox XFCN</span><span class="style1"></span><span class="style8">            ¬© Jeff Winkler, 1991. All rights reserved.</span><span class="style3">  growBox allows a user to resize a Hypercard card like any Macintosh window.  It should be called from a mouseDown handler.  The parameters are:growBox (the clickLoc,"¬© Jeff Winkler" [,bounding rectangle])  growBox returns the new rectangle for the card.  A </span><span class="style10">sizewindow</span><span class="style3"> handler may then rearrange the objects on the card to fit the new enclosure (This message is only sent if the size changed). As you might guess, this is the hard part. Look at the script of this card for an example.  The optional bounding rectangle determines the largest and smallest size for the window.  The items are: minWidth,minHeight,maxWidth,maxHeight. As an example, the bounding rect for this window is 288,116,800,1000.  Finding the optimal bounding rect usually requires some experimentation.  Remember that the width of a card is always a multiple of 16.</span><span class="style11">Licensing</span><span class="style3">  growBox is free for private use, but commerical use must be registered with the author.  This includes in-house projects.  Licensing fees are as follows:Unlimited use in a single commercial product: $75Unlimited use in multiple commercial products: $100</span><span class="style11">Contact Information</span><span class="style3">AOL: winkler1Applelink: D6818Permanent Address:Jeff WinklerAttn: LicensingRfd #1Claremont, NH 03743</span><span class="style11">Distribution</span><span class="style3">This stack may be distributed by online services and user groups holding regular public meetings. Other organizations must request permission to distribute.  Educorp is specifically prohibited from distributing this stack.</span></text>
  255.     </content>
  256.     <name></name>
  257.     <script>on opencardset the scroll of cd fld 1 to 0show cd btn windowGuyend opencardon sizeWindow--‚Ä¢ resize the buttons and fields.--‚Ä¢ 3D frame created with Shadow Boxer by JW--‚Ä¢ the mouseDown handler has locked the screen for us.put item 3 of rect of this cd into newWidthput item 4 of rect of this cd into newHeightset the rect of cd fld "t1432" to 13,13,newWidth-13,14set the rect of cd fld "l1432" to 13,13,14,newHeight-14set the rect of cd fld "b1432" to 13,newHeight-14,newWidth-13,newHeight-12set the rect of cd fld "r1432" to newWidth-14,13,newWidth-12,newHeight-12set the rect of cd fld "body" to 16,16,newWidth-16,newHeight-16set the bottomRight of cd btn "sizer" to newWidth+1,newHeight+1end sizeWIndowon idleget (the scroll of cd fld 1=0)if the visible of cd btn windowGuy‚â†it then set the visible of cd btn windowGuy to itend idle</script>
  258. </card>
  259.  
  260.  
  261.